var app = getApp();
var WxParse = require('../../../wxParse/wxParse.js');
Page({
  data: {
     service_content:'',
     service_name:''
  },

  onLoad: function (options) {
   var sid=options.id;
      var that = this;
      wx.request({
        url: app.globalData.weburl + app.globalData.jiekou + "/get_services_details",
        header: {
          "Content-Type": "application/x-www-form-urlencoded"
        },
        method: "POST",
        data: { 'id': sid},
        complete: function (res) {
         console.log(res);
          console.log(res.data.service_content);
          var service_content = res.data.service_content;
          WxParse.wxParse('service_content', 'html', service_content, that);
          that.setData({
            service_name: res.data.service_name,
            // service_content: res.data.service_content,
            service_summary: res.data.service_summary,
            images: app.globalData.weburl + res.data.images
          })
        }
      })
  }


})